<img src="/images/news.gif" align="center"/>
<div class="right">
  <% form_tag search_article_result_path,:id=>"serach",:method=>:get do -%>
    <%= text_field_tag "title",article_search ,:class=>"search_text",:id=>"search_key" %>
    <input type="submit" value="资讯快搜" class="search_buttom" id="query"/>
  <% end -%>
</div>


<% javascript_tag do -%>  
  $("#query").click(function(){
  if($("#search_key").val()=="")
  {
    alert("请输入要查找的关键字！");
    return false;
  }
  });
<% end -%>
